# encoding: utf-8
import os

DEBUG = True
DIALECT = 'mysql'
DRIVER = 'mysqldb'
USERNAME = 'root'
PASSWORD = '555'
HOST = '127.0.0.1'
PORT = '3306'
DATABASE = 'movie'
SQLALCHEMY_DATABASE_URI = "{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT, DRIVER, USERNAME, PASSWORD, HOST, PORT,
                                                                       DATABASE)
SQLALCHEMY_TRACK_MODIFICATIONS = True

SECRET_KEY = '0ff678a414a242a897d5e47f0ae9a2c4'


UP_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "static/uploads/")
FC_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "static/uploads/users/")